package com.bosssoft.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bosssoft.entity.dto.FibAccountDTO;
import com.bosssoft.entity.dto.FibDepartmentDTO;
import com.bosssoft.entity.po.FibAccountPO;
import com.bosssoft.entity.po.FibDepartmentPO;
import com.bosssoft.entity.vo.FibDepartmentVO;
import com.bosssoft.page.PageResult;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 部门表(FibDepartment)表服务接口
 *
 * @author makejava
 * @since 2021-08-20 10:59:13
 */
@Service
public interface FibDepartmentService {
    PageResult<FibDepartmentPO> page(Page<FibDepartmentPO> page, FibDepartmentPO fibDepartmentPO);

    FibDepartmentDTO selectOneById(Long id);

    List<FibDepartmentDTO> selectAll(Long page, Long limit);

    boolean delete(FibDepartmentDTO fibDepartmentDTO);

    boolean insert(FibDepartmentDTO fibDepartmentDTO);

    boolean update(FibDepartmentDTO fibDepartmentDTO);

    boolean updateDeleted(FibDepartmentDTO fibDepartmentDTO);

    List<Long> selectChildrenIds(Long deptId);

    Page<FibDepartmentVO> selectChildrenPage(Integer current, Integer size, Long deptId);
}
